package org.jeecg.modules.room.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 房间信息
 * @Author: jeecg-boot
 * @Date:   2023-12-01
 * @Version: V1.0
 */
@Data
@TableName("room_info")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="room_info对象", description="房间信息")
public class RoomInfo implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**房间号*/
	@Excel(name = "房间号", width = 15)
    @ApiModelProperty(value = "房间号")
    private String roomCode;
	/**房间类型编码*/
	@Excel(name = "房间类型编码", width = 15)
    @ApiModelProperty(value = "房间类型编码")
    @Dict(dictTable = "room_type", dicText = "room_type_name", dicCode = "room_type_code")
    private String roomTypeCode;
	/**楼层编码*/
	@Excel(name = "楼层编码", width = 15)
    @ApiModelProperty(value = "楼层编码")
    @Dict(dictTable = "room_level", dicText = "room_level_name", dicCode = "room_level_code")
    private String roomLevelCode;
	/**额定人数*/
	@Excel(name = "额定人数", width = 15)
    @ApiModelProperty(value = "额定人数")
    private Integer ratingNum;
	/**床数*/
	@Excel(name = "床数", width = 15)
    @ApiModelProperty(value = "床数")
    private Integer bedNum;
	/**是否可作自用房*/
	@Excel(name = "是否可作自用房", width = 15)
    @ApiModelProperty(value = "是否可作自用房")
    @Dict(dicCode = "is_true")
    private String isSelfUse;
	/**房间特征*/
	@Excel(name = "房间特征", width = 15)
    @ApiModelProperty(value = "房间特征")
    private String roomDesc;
	/**房间照片*/
	@Excel(name = "房间照片", width = 15)
    @ApiModelProperty(value = "房间照片")
    private String roomPhoto;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
    /**是否启用*/
    @Excel(name = "是否启用", width = 15, dicCode = "is_true")
    @Dict(dicCode = "is_true")
    @ApiModelProperty(value = "是否启用")
    private String isEnable;
}
